@extends('common.base-master')

@section('html-head')
    <link rel="stylesheet" href="{{url('css/style.css')}}">
    <link rel="stylesheet" href="{{url('css/common.css')}}">
    <link rel="stylesheet" href="{{url('css/public.css')}}">
    <link rel="stylesheet" href="{{url('css/demos.css')}}">
    <style>
        body{
            background-color: #f3f3f3;
        }
        .toolbar .title {
            line-height: 2.4rem;
        }
    </style>
    <script src="https://cdn.bootcss.com/jquery-weui/1.2.0/js/swiper.min.js"></script>
    <script src="https://cdn.bootcss.com/jquery-weui/1.2.0/js/city-picker.min.js"></script>
@endsection

@section('html-body')
<div>
    <!-- 个人 -->
    <div class="weui-cells geren-list_item">
        <a class="weui-cell weui-cell_access right_15--before" href=" ">
            <div class="weui-cell__hd geren-avatar_box">
                <img src="@if($userinfo)<?php echo \App\Http\Services\UserManager::getUserPhotoUrl($userinfo->photo_id) ?> @endif" alt="">
            </div>
            <div class="weui-cell__bd geren-msg_box">
                <p class="geren-msg_title">@if($userinfo){{$userinfo->nickname}}@endif</p>
                <p class="geren-msg_desc">msg</p>
            </div>
            <div class="weui-cell__ft">
                <img src="{{url('images/code.png')}}" alt="" class="img-size-small position-relative" style="top:.1rem;">
                <span class="geren-msg_ft">关注公众号</span>
            </div>
        </a>
    </div>

    @if($userinfo && $userinfo->is_member == 1)
    <div class="weui-cells geren-list_item">
        <a class="weui-cell weui-cell_access right_15--before" href="{{route('Home.Page.page',['tag'=>'member_power'])}}">
            <div class="weui-cell__hd">
                <img src="{{url('images/icon-vip_fill.png')}}" alt="" class="img-size-normal">
            </div>
            <div class="weui-cell__bd">会员权限</div>
            <div class="weui-cell__ft"></div>
        </a>
        <a class="weui-cell weui-cell_access right_15--before" href="{{route('Home.Page.changeUserInfo')}}">
            <div class="weui-cell__hd">
                <img src="{{url('images/icon-edit_fill.png')}}" alt="" class="img-size-normal">
            </div>
            <div class="weui-cell__bd">会员编辑</div>
            <div class="weui-cell__ft"></div>
        </a>
    </div>
    {{--<div class="weui-cells geren-list_item">--}}
        {{--<a class="weui-cell weui-cell_access right_15--before" href="{{route('Home.Page.page',['tag'=>'reset_life'])}}">--}}
            {{--<div class="weui-cell__hd">--}}
                {{--<img src="{{url('images/icon-restart_fill.png')}}" alt="" class="img-size-normal">--}}
            {{--</div>--}}
            {{--<div class="weui-cell__bd">重启人生</div>--}}
            {{--<div class="weui-cell__ft"></div>--}}
        {{--</a>--}}
        {{--<a class="weui-cell weui-cell_access right_15--before" href="{{route('Home.Page.page',['tag'=>'vote'])}}">--}}
            {{--<div class="weui-cell__hd">--}}
                {{--<img src="{{url('images/icon-selection_fill.png')}}" alt="" class="img-size-normal">--}}
            {{--</div>--}}
            {{--<div class="weui-cell__bd">筛选投票</div>--}}
            {{--<div class="weui-cell__ft"></div>--}}
        {{--</a>--}}
    {{--</div>--}}
    @else
    <!-- 未成为会员 -->
    <div class="weui-cells geren-list_item">
        <a class="weui-cell weui-cell_access right_15--before font-color__sub" href="javascript:;">
            <div class="weui-cell__hd">
                <img src="{{url('images/icon-vip.png')}}" alt="" class="img-size-normal">
            </div>
            <div class="weui-cell__bd">会员权限</div>
            <div class="weui-cell__ft"></div>
        </a>
        <a class="weui-cell weui-cell_access right_15--before font-color__sub" href="javascript:;">
            <div class="weui-cell__hd">
                <img src="{{url('images/icon-edit.png')}}" alt="" class="img-size-normal">
            </div>
            <div class="weui-cell__bd">会员编辑</div>
            <div class="weui-cell__ft"></div>
        </a>
    </div>
    {{--<div class="weui-cells geren-list_item">--}}
        {{--<a class="weui-cell weui-cell_access right_15--before font-color__sub" href="javascript:;">--}}
            {{--<div class="weui-cell__hd">--}}
                {{--<img src="{{url('images/icon-restart.png')}}" alt="" class="img-size-normal">--}}
            {{--</div>--}}
            {{--<div class="weui-cell__bd">重启人生</div>--}}
            {{--<div class="weui-cell__ft"></div>--}}
        {{--</a>--}}
        {{--<a class="weui-cell weui-cell_access right_15--before font-color__sub" href="javascript:;">--}}
            {{--<div class="weui-cell__hd">--}}
                {{--<img src="{{url('images/icon-selection.png')}}" alt="" class="img-size-normal">--}}
            {{--</div>--}}
            {{--<div class="weui-cell__bd">筛选投票</div>--}}
            {{--<div class="weui-cell__ft"></div>--}}
        {{--</a>--}}
    {{--</div>--}}
    @endif
    <div class="weui-cells geren-list_item">
        <a class="weui-cell weui-cell_access right_15--before" href="{{route('Home.Page.page',['tag'=>'about_us'])}}">
            <div class="weui-cell__hd">
                <img src="{{url('images/icon-know_fill.png')}}" alt="" class="img-size-normal">
            </div>
            <div class="weui-cell__bd">了解我们</div>
            <div class="weui-cell__ft"></div>
        </a>
        <a class="weui-cell weui-cell_access right_15--before" href="{{route('Home.Page.page',['tag'=>'cooperate'])}}">
            <div class="weui-cell__hd">
                <img src="{{url('images/icon-cooperation_fill.png')}}" alt="" class="img-size-normal">
            </div>
            <div class="weui-cell__bd">商务合作</div>
            <div class="weui-cell__ft"></div>
        </a>
    </div>
    @include('common.new-menu')
</div>
@endsection